package sw6.visualschedule.extendedViews;

import sw6.visualschedule.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.TextView;

public class CheckBoxEntry extends LinearLayout
{
	private final transient TextView mTitle;
	private final transient TextView mSummary;
	private final transient CheckBox mCheckBox;
	
	public TextView getTitle() {
		return mTitle;
	}
	
	public TextView getSummary() {
		return mSummary;
	}

	public CheckBox getCheckBox() {
		return mCheckBox;
	}

	public CheckBoxEntry(final Context context) {
		super(context);
		
		final LayoutInflater layoutInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		layoutInflater.inflate(R.layout.checkboxentry,this);
		mTitle = (TextView)findViewById(R.id.checkbox_title);
		mSummary = (TextView)findViewById(R.id.checkbox_summary);
		mCheckBox = (CheckBox)findViewById(R.id.checkbox_check);
		
	}
}
